package com.apanal.qlife.common.model;

import java.io.Serializable;
import java.util.Date;

/**
 * 基础模型类
 * 
 * 
 * @author shuliangxing
 * 
 * @date 2015-8-27下午3:41:15
 */
public class BaseModel implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 8576865987451646643L;

	/**
	 * 数据状态, 1:有效 0:无限(删除)
	 */
	private Integer status;

	/**
	 * 新增时间
	 */
	private Date insertDate;

	/**
	 * 新增人id
	 */
	private Long insertBy;

	/**
	 * 新增人名字
	 */
	private String insertName;

	/**
	 * 最后修改时间
	 */
	private Date lastUpdateDate;

	/**
	 * 最后修改人
	 */
	private Long lastUpdateBy;

	/**
	 * 最后修改人名字
	 */
	private String lastUpdateName;

	/**
	 * 开始时间,可用来做时间区间段查询
	 */
	private String dateStart;

	/**
	 * 结束时间,可用来做时间区间段查询
	 */
	private String dateEnd;

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Date getInsertDate() {
		return insertDate;
	}

	public void setInsertDate(Date insertDate) {
		this.insertDate = insertDate;
	}

	public Long getInsertBy() {
		return insertBy;
	}

	public void setInsertBy(Long insertBy) {
		this.insertBy = insertBy;
	}

	public String getInsertName() {
		return insertName;
	}

	public void setInsertName(String insertName) {
		this.insertName = insertName;
	}

	public Date getLastUpdateDate() {
		return lastUpdateDate;
	}

	public void setLastUpdateDate(Date lastUpdateDate) {
		this.lastUpdateDate = lastUpdateDate;
	}

	public Long getLastUpdateBy() {
		return lastUpdateBy;
	}

	public void setLastUpdateBy(Long lastUpdateBy) {
		this.lastUpdateBy = lastUpdateBy;
	}

	public String getLastUpdateName() {
		return lastUpdateName;
	}

	public void setLastUpdateName(String lastUpdateName) {
		this.lastUpdateName = lastUpdateName;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public String getDateStart() {
		return dateStart;
	}

	public void setDateStart(String dateStart) {
		this.dateStart = dateStart;
	}

	public String getDateEnd() {
		return dateEnd;
	}

	public void setDateEnd(String dateEnd) {
		this.dateEnd = dateEnd;
	}

	@Override
	public String toString() {
		return "BaseModel [status=" + status + ", insertDate=" + insertDate
				+ ", insertBy=" + insertBy + ", insertName=" + insertName
				+ ", lastUpdateDate=" + lastUpdateDate + ", lastUpdateBy="
				+ lastUpdateBy + ", lastUpdateName=" + lastUpdateName
				+ ", dateStart=" + dateStart + ", dateEnd=" + dateEnd + "]";
	}

}
